#include <stdio.h>

int main(){
	double r,v,s;
	const double PI = 3.1415926535;
	scanf("%lf", &r);
	v = 4.0/3*PI*r*r*r;
	s =	4*PI*r*r;
	printf("%f\n%f",v,s);
	return 0;
}
